from .redis_cluster_config import RedisClusterConfig, load_redis_cluster_config
from .settings import settings
from .agent_config import agent_config
from .middleware_config import middleware_config

# 临时桩：供fallback.py引用
class BaseConfigStub:
    cache_hot_key_ttl = 300

base_config = BaseConfigStub()

# 临时桩：供rate_limiter.py引用
class SecurityConfigStub:
    rate_limit_default = 100
    class RateLimitStub:
        def dict(self):
            return {}
    rate_limit = RateLimitStub()

security_config = SecurityConfigStub()

# 兼容旧导入
def load_redis_config():
    """读取 Redis 配置"""
    from .redis_cluster_config import load_redis_cluster_config
    return load_redis_cluster_config()

__all__ = ["RedisClusterConfig", "settings", "load_redis_config", "agent_config", "middleware_config", "base_config", "security_config"]